package 动态规划;

/**
 * @ClassName: zhengzebiaodashi
 * @Description: TODO
 * @Author WN
 * @Date 2021/7/14 16:36
 * @Version V1.0
 */
public class zhengzebiaodashi {
    public boolean isMatch(String[] s,String[] p){
        int i=0,j=0;
        while (i<s.length&&j<p.length){
            if (s[i]==p[i]||p[j]=="."){
                i++;
                j++;
            }else {
                return false;
            }
        }
        return i==j;
    }

}
